﻿<%@ Page Title="" Language="C#" MasterPageFile="~/BasicBase/BasicBase.master" AutoEventWireup="true"
    CodeFile="ChemicalList.aspx.cs" Inherits="BasicBase_Chemical_ChemicalList" StylesheetTheme="Content" %>

<%@ Register Src="../../UserContral/ListPageContral.ascx" TagName="ListPageContral"
    TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <ul class="topmenu" runat="server" id="topmenu">
        <li>
            <asp:DropDownList ID="ddlNameType" runat="server">
                <asp:ListItem Value="CnName">中文名称</asp:ListItem>
                <asp:ListItem Value="EnName">英文名称</asp:ListItem>
                <asp:ListItem Value="OtName">其它名称</asp:ListItem>
            </asp:DropDownList>
        </li>
        <li>
            <asp:TextBox runat="server" ID="txtChemicalName"></asp:TextBox></li><li>
                <asp:LinkButton runat="server" ID="lbtQurey" Text="查询" OnClick="lbtQurey_Click"></asp:LinkButton></li><li>
                    <a href="ChemicalNew.aspx">添加</a></li>
    </ul>
    <div class="clear">
    </div>
    <div>
        <asp:GridView ID="gvChemical" runat="server" AutoGenerateColumns="False" DataKeyNames="ChemicalID"
            Caption="<span>化学危险品列表</span>" OnRowDataBound="gvChemical_RowDataBound" PageSize="15"
            OnRowCommand="gvChemical_RowCommand">
            <Columns>
                <asp:TemplateField>
                    <HeaderStyle HorizontalAlign="Left" Width="5%" />
                    <ItemTemplate>
                        <asp:Label runat="server" ID="lblID"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="CnName" HeaderText="中文名称" />
                <asp:BoundField DataField="EnName" HeaderText="英文名称" />
                <asp:BoundField DataField="OtName" HeaderText="其它名称" />
                <asp:TemplateField HeaderText="编辑">
                    <ItemTemplate>
                        <a href="ChemicalNew.aspx?ID=<%# Eval("ChemicalID") %>">
                            <img alt="编辑" src="../../Images/Edit.gif" /></abbr></a>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" Width="25" />
                    <HeaderStyle HorizontalAlign="Center" Width="25" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="删除">
                    <ItemTemplate>
                        <asp:ImageButton runat="server" CommandArgument='<%# Eval("ChemicalID") %>' ID="lkbDel"
                            CommandName="Del" ImageUrl="~/Images/delete.gif" OnClientClick="return confirm('是否真的删除?')">
                        </asp:ImageButton>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" Width="25" />
                    <HeaderStyle HorizontalAlign="Center" Width="25" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="查看">
                    <ItemTemplate>
                        <a href="ChemicalView.aspx?id=<%# Eval("ChemicalID") %>">
                            <img alt="查看" src="../../Images/UserView.gif" /></a>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" Width="25" />
                    <HeaderStyle HorizontalAlign="Center" Width="25" />
                </asp:TemplateField>
            </Columns>
            <RowStyle HorizontalAlign="Left" />
            <HeaderStyle HorizontalAlign="Left" />
        </asp:GridView>
        <uc1:ListPageContral ID="ListPageContral1" runat="server" PageSize="15" OnPageSizeChange="ListPageContral1_PageSizeChange" />
        <br />
        <asp:Label runat="server" ID="lblwhere" Visible="False"></asp:Label><div class="prompt">
            <asp:Label ID="Prompt" runat="server"></asp:Label></div>
    </div>
</asp:Content>
